<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div id="footer">

			<!-- 判断是否到达首页 -->
			<c:if test="${paging.pageNow!=1 }">
				<a href="${url}&pageNow=1&pageSize=${paging.pageSize}">首页</a>&nbsp;
				<a
					href="${url}&pageNow=${paging.pageNow-1}&pageSize=${paging.pageSize}">上一页</a>&nbsp;
			</c:if>
			<!-- 判断是否从首页开始 -->
			<c:choose>
				<c:when test="${paging.pageNow<3 }">
					<c:set var="beg" value="1"></c:set>
				</c:when>
				<c:otherwise>
					<c:set var="beg" value="${paging.pageNow-1 }"></c:set>
				</c:otherwise>
			</c:choose>

			<!-- 显示显示页数 -->
			<c:forEach var="pp" begin="${beg}" end="${beg+2}">
				<c:if test="${pp<=paging.pageCount}">
					<a href="${url}&pageNow=${pp}&pageSize=${paging.pageSize}">${pp}</a>
				</c:if>
			</c:forEach> 


			<!-- 判断是否到达末尾 -->
			<c:if test="${paging.pageNow!=paging.pageCount}">
				<a
					href="${url}&pageNow=${paging.pageNow+1}&pageSize=${paging.pageSize}">下一页</a>&nbsp;
				<a
					href="${url}&pageNow=${paging.pageCount}&pageSize=${paging.pageSize}">末页</a>&nbsp;
			</c:if>

			当前页${paging.pageNow }/${paging.pageCount }总共页&nbsp;&nbsp; 跳转<input
				type="text" id="goPage" style="width: 30px" />页<input type="button"
				value="Go" onclick="goPage()" />

			<!-- 定义一个pc,每页显示条数 -->
			<c:set var="pc" value="1"></c:set>
			每页显示 <select id="size" onchange="changeSize(this)">
				<c:forEach begin="1" end="14" var="p" step="1">
					<option value="${p+1}"
						<c:if test="${paging.pageSize==p+1}">selected</c:if>>${p+1}</option>
				</c:forEach>
			</select> 条
		</div>